<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <div id="app">
      数1<input type="text" name="" id="" v-model.number.trim="num1">
      数2<input type="text" name="" id="" v-model.number.lazy="num2">
      加法结果：<span>{{num1+num2}}</span>
    </div>
    <script src="./vue.js"></script>
    <script>
      const vm=new Vue({
        el:'#app',
        data:{num1:"",num2:""},
        methods:{

        },
       })
    </script>
  </body>
</html>